import { Component } from '@angular/core';

import axios from 'axios';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.scss']
})
export class AppComponent {
  title = 'prose';

  list:Array<any>=[];
  ngOnInit(): void {

    axios.get('http://localhost:5000/My/GetAllArticles').then(res => {
      this.list = res.data
      console.log(res.data)
    })
  }
}
